package rensoft.android.xml.w3c.impl;

import rensoft.java.xml.w3c.NamedNodeMap;
import rensoft.java.xml.w3c.Node;

public class W3CNamedNodeMap implements NamedNodeMap {

  private final org.w3c.dom.NamedNodeMap attributes;

  public W3CNamedNodeMap(org.w3c.dom.NamedNodeMap attributes) {
    this.attributes = attributes;
  }

  public int getLength() {
    return attributes.getLength();
  }

  public Node item(int index) {
    return new W3CNode(attributes.item(index));
  }

}
